# -*- coding: utf-8 -*-
"""
API路由注册
将所有API接口集中注册到路由器中
"""

from fastapi import APIRouter
from src.routers.detection import router as detection_router
from src.routers.user import router as user_router
from src.routers.upload import router as upload_router
from src.routers.checkin import router as checkin_router
from src.routers.basp import router as basp_router


# 创建主API路由器
api_router = APIRouter()

# 注册各个模块的路由
api_router.include_router(detection_router, tags=["detection"])
api_router.include_router(user_router, tags=["user"])
api_router.include_router(upload_router, tags=["upload"])
api_router.include_router(checkin_router, prefix="/checkin", tags=["checkin"])
api_router.include_router(basp_router, tags=["basp"])
